from django.utils.translation import ugettext_lazy as _
from sorl import curator as admin
from example_project.pages.models import Page
from example_project.pages.forms import PageForm

class PageAdmin(admin.ModelAdmin):
    description = _("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
    form = PageForm
    prepopulated_fields = {"slug": ("title",)}
    list_display = ('title', 'menu')
    position_field = 'position'
    order_with_respect_to = 'menu'

admin.site.register(Page, PageAdmin)
